// 头部导航
<template>
  <div class="header">
    <h1 class="logo">Sv Music</h1>
    <div class="menu">
      <Menu v-for="(item, index) in menuData" :key="index" :item="item" />
    </div>
    <div class="login"></div>
  </div>
</template>

<script>
import menuData from '@/data/headerMenuData';
import Menu from './menu.vue';

export default {
  name: 'sv-header',
  components: {
    Menu,
  },
  data() {
    return {
      menuData,
      pathshow: false,
    };
  },
};
</script>

<style lang='scss' scoped>
.header {
  display: flex;
  align-items: center;
  height: 8vh;
  width: 100%;
  border-bottom: 1px solid rgb(48, 47, 73);
  .logo {
    margin: 0 15px;
    color: rgb(156, 151, 161);
    font-size: 20px;
  }
  .menu {
    display: flex;
    justify-content: center;
    flex: 1;
  }
  .login {
    width: 75px;
  }
}
</style>
